<?xml version="1.0" encoding="UTF-8"?>    
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:composite="http://java.sun.com/jsf/composite">
<composite:interface>
	<composite:attribute name="orders" type="com.ejd.hibernate.dao.support.Page"/>
	<composite:attribute name="locale" method-signature="java.lang.String"/>
</composite:interface>
<composite:implementation>
	<table class="centerOrderTable" cellspacing="0" cellpadding="0" width="100%" border="1">
    	<thead>
       			<tr>
    			<th style="width:14%;">#{msgs['order.orderid.display'] }</th>
			    <th style="width:18%;">#{msgs['order.generatetime.display'] }</th>
			    <th style="width:12%">#{msgs['consignee.name.display'] }</th>
			    <th style="width:12%">#{msgs['order.needpayment.display'] }</th>
			    <th style="width:12%">#{msgs['order.pay.style.display'] }</th>
			    <th style="width:16%">#{msgs['order.send.style.display'] }</th>
			    <th style="width:9%">#{msgs['order.status.display'] }</th>
			    <th style="width:7%">#{msgs['operate.display'] }</th>
			</tr>
		</thead>
		<tbody>
			<script language="javascript">
		     function openWindow(url) {  
		    	             window.open(url,'newwindow','height='+screen.availHeight+',width='+screen.availWidth+'alwaysRaised=yes,top=0,left=0,titlebar=no,z-look=yes,toolbar=no,menubar=no,scrollbars=no, resizable=yes,,screenX=0,screenY=0,location=no, status=no,scrollbars=yes');   
		    	 }
		    
		    </script>
			<a4j:repeat value="#{cc.attrs.orders.result}" var="order">
				<tr>
				    <td><a class="f11" title="查看订单详情 " 
				      href="http://my.woye.com/cp.dhtml?mod=order&amp;do=op-view&amp;ono=5654213">#{order.orderId }</a></td>
				    <td><h:outputLabel value="#{order.orderGenerateTime }"><f:convertDateTime timeZone="GMT+8" locale="#{localBean.locale}" pattern="yyyy-MM-dd HH:mm"/></h:outputLabel></td>
				    <td title="#{order.consigneeName }">#{order.consigneeName }</td>
				    <td title="￥#{order.needPayment }"><h:outputLabel value="#{order.needPayment }"><f:convertNumber type="currency" locale="#{localBean.locale}" maxFractionDigits="2" minFractionDigits="1"></f:convertNumber></h:outputLabel></td>
				    <td title="#{order.paymentName }">#{order.paymentName }</td>
				    <td title="#{order.deliveryName }">#{order.deliveryName }</td>
				    <td>
				    	<h:outputLabel value="#{msgs['order.status.success']}" style="#{'SU' eq order.status ?'':'display:none'}"></h:outputLabel>
						<h:outputLabel value="#{msgs['order.status.waiting.for.being.reviewed']}" style="#{'WR' eq order.status ?'':'display:none'}"></h:outputLabel>    
						<h:outputLabel value="#{msgs['order.status.prepare.goods']}" style="#{'PG' eq order.status ?'':'display:none'}"></h:outputLabel>
						<h:outputLabel value="#{msgs['order.status.transfer']}" style="#{'TR' eq order.status ?'':'display:none'}"></h:outputLabel>
						<h:outputLabel value="#{msgs['order.status.waiting.outstock']}" style="#{'WO' eq order.status ?'':'display:none'}"></h:outputLabel>
						<h:outputLabel value="#{msgs['order.status.out.stock']}" style="#{'OS' eq order.status ?'':'display:none'}"></h:outputLabel>
						<h:outputLabel value="#{msgs['order.status.refund']}" style="#{'RF' eq order.status ?'':'display:none'}"></h:outputLabel>
						<h:outputLabel value="#{msgs['order.status.cancel.by.customer']}" style="#{'CC' eq order.status ?'':'display:none'}"></h:outputLabel>
						<h:outputLabel value="#{msgs['order.status.cancel.by.user']}" style="#{'CU' eq order.status ?'':'display:none'}"></h:outputLabel>
						<h:outputLabel value="#{msgs['order.status.cancel.by.system']}" style="#{'CS' eq order.status ?'':'display:none'}"></h:outputLabel>
				    </td>
				    <td>
				    
				    	<a href="${facesContext.externalContext.requestContextPath}/faces/layout/customer/orderPay.xhtml?orderId=#{order.desPlusOrderId }" target="_blank">pay</a>
				    	<a href="${facesContext.externalContext.requestContextPath}/faces/layout/customer/updateOrder.xhtml?orderId=#{order.desPlusOrderId }" target="_blank">update</a>
				    
				    
				    </td>
			  	</tr>
		  	</a4j:repeat>
		  	
		  	<tr style="#{empty cc.attrs.orders.result?'text-align:center':'display:none' }">
		  		<td colspan="8">#{msgs['order.empty.display'] }</td>
		  	</tr>
	  	</tbody>
	</table>
</composite:implementation>

</html>
